﻿using System;
using System.Linq;
using System.Text;

namespace Catalog
{
    public abstract class Client
    {
        public Client(string name, string address = null, string mobileNumber = null, string pictureSource = null)
        {
            this.Name = name;
            this.Address = address;
            this.MobileNumber = mobileNumber;
            this.PictureSource = pictureSource;
        }

        public string Name { get; private set; }

        public string Address { get; private set; }

        public string MobileNumber { get; private set; }

        public string PictureSource { get; private set; }// да се изнесе в структура и да се визуализира по подходящ начин / или през интерфейс

        public override string ToString()
        {
            StringBuilder result = new StringBuilder();

            result.AppendFormat("{0}: {1}, Address: {2}, Mobile number: {3}, Picture: {4}",
                this.GetType().Name, this.Name, this.Address, this.MobileNumber, this.PictureSource);

            return result.ToString();
        }
    }
}